package com.qf.controller;


import com.qf.service.UserService;
import com.qf.util.ResultData;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserLoginController {

    @Autowired
    UserService userService;

    @RequestMapping("/login")
    public ResultData login(String username, String password){
        // 调用业务层
        ResultData data = userService.findUserByLogin(username,password);
        return data;
    }

}
